import { UIPanel, UITabbedPanel } from './lib/ui.js';
import { SidebarProps } from './Sidebar.Props.js';

function Sidebar(editor) {

    var strings = editor.strings;

    var container = new UITabbedPanel();
    container.setId('sidebar');


    var prop = new SidebarProps(editor);

    var setting = new UIPanel();
    setting.setClass('setting');

    container.addTab('prop', strings.getKey('sidebar/properties/object'), prop);
    container.addTab('setting', strings.getKey('sidebar/settings'), setting);
    container.select('prop');


    return container;

}


export { Sidebar }